# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-py-cpuinfo-gns3
_pkgname=py-cpuinfo
pkgver=7.0.0
pkgrel=0
pkgdesc="Pure-Python module for getting CPU info - GNS3 compatible version"
url="https://github.com/workhorsy/py-cpuinfo"
# does not actually work on mips
arch="noarch !mips !mips64"
license="MIT"
depends="python3 !py3-py-cpuinfo"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="fd291533dc5e78d75851e61ef2a754d9bdb62cbb5e04c86db0d6ea2d074a1e920b1ff50c136df3dd640cb64deaccd4f187c5af02c586a3d28b8c74dfe4143893  py-cpuinfo-7.0.0.tar.gz"
